<extend name="User/index"/>
<block name="pageContent">
    <div class="center-top">
        <a href="#">
            <h5 >
                <div style="position: relative;width: 5em;height:  5em;margin: 0 auto;">
                    <img src="<?php echo $user['headimgurl'] ? $user['headimgurl'] : "__IMG__/user/portrait.jpg";?>" alt="头像">
                    <span style="
                    position: absolute;bottom: -.5em;left: .3em;width: 4.5em;
                    background-color: #00A8FF;border-radius: .2em;
                    ">
                        <if condition="$result[0]['level'] eq 0">
                            普通用户
                            <elseif condition="$result[0]['level'] eq 1" />
                            初级会员
                        </if>
                    </span>
                </div>


            </h5>
            <p>
                <if condition="$user['nickname']">
                        {$user.nickname}
                    <else/>
                        <if condition="$user['username']">
                            {$user.username}
                         <else/>
                            {$user.mobile}
                        </if>
                </if>
            </p>

            <!--<p>点击登录</p>-->
        </a>
    </div>
    <div class="ren-box">
        <ul class="ren-con">
            <li><a href="{:U('vip')}">
                <div class="category-con">
                    <div class="category-left"><em class="ren9"></em>优才圈会员</div>
                    <div class="category-right"><span class="red">
                         <if condition="$result[0]['level'] eq 0">
                            普通用户
                            <elseif condition="$result[0]['level'] eq 1" />
                            初级会员
                        </if>
                    </span></div>
                </div>
            </a></li>
            <!--<li><a href="#">-->
                <!--<div class="category-con">-->
                    <!--<div class="category-left"><em class="ren1"></em>我的成长</div>-->
                    <!--<div class="category-right"><span class="red">{$user.score}</span>分</div>-->
                <!--</div>-->
            <!--</a></li>-->
            <li><a href="{:U('order')}">
                <div class="category-con">
                    <div class="category-left"><em class="ren10"></em>我的订单</div>
                </div>
            </a></li>
        </ul>
        <ul class="ren-con">
            <li><a href="{:U('detail')}">
                <div class="category-con">
                    <div class="category-left"><em class="ren2"></em>个人信息</div>
                </div>
            </a></li>
            <li><a href="{:U('profile')}">
                <div class="category-con">
                    <div class="category-left"><em class="ren3"></em>账户设置</div>
                </div>
            </a></li>
            <li><a href="{:U('sonIncome')}">
                <div class="category-con">
                    <div class="category-left"><em class="ren4"></em>分销系统</div> 
                </div>
           </a></li>
        </ul>
        <ul class="ren-con">
            <li><a href="{:U('collect')}">
                <div class="category-con">
                    <div class="category-left"><em class="ren5"></em>我的收藏</div>
                </div>
            </a></li>
<!--            <li><a href="{:U('subscribe')}">
                <div class="category-con">
                    <div class="category-left"><em class="ren6"></em>我的订阅</div>
                </div>
            </a></li>
            <!--<li><a href="{:U('message')}">-->
                <!--<div class="category-con">-->
                    <!--<div class="category-left"><em class="ren6"></em>我的消息</div>-->
                <!--</div>-->
            <!--</a></li>-->
            <li><a href="{:U('faq')}">
                <div class="category-con">
                    <div class="category-left"><em class="ren7"></em>我的问答</div>
                </div>
            </a></li>
            <li><a href="{:U('invite', array('pid'=>UID))}">
                <div class="category-con">
                    <div class="category-left"><em class="ren8"></em>邀请码邀请</div>
                </div>
            </a></li>
        </ul>
<!--         <ul class="ren-con">
    <li><a href="{:U('help')}">
        <div class="category-con">
            <div class="category-left"><em class="ren8"></em>使用帮助</div>
        </div>
    </a></li>
</ul> -->
        <ul class="pagem-con">
            <li class="btn"><a href="{:U('logout')}">退出登录</a></li>
        </ul>
    </div>
</block>